package com.kx.center.mappers;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kx.center.entity.MsgNotice;
import com.kx.center.entity.MsgSend;

public interface MsgNoticeMapper {

	List<MsgNotice> findNoticeListByPage(@Param("companyId")Integer companyId ,@Param("pageNow")Integer pageNow ,@Param("pageSize")Integer pageSize);

	int getPageCount(int companyId);

	int getAppNoticePageCount(int appAccountId);

	List<MsgSend> findAppNoticeListByPage(@Param("pageNow")Integer pageNow, @Param("pageSize")Integer pageSize, @Param("appAccountId")Integer appAccountId);

	void changeSendStatus(int sendId);

	int findNoticeMsgId(int sendId);

	void changeNoticeCheckedNum(int noticeId);

	List<MsgSend> findUncheckedMsg(int appAccountId);

	void addNoticeMsg(MsgNotice msgNotice);

	void sendNoticeMsg2Account(MsgSend msgSend);

	void updateSendNum(@Param("noticeId")Integer noticeId, @Param("successNum")Integer successNum);

	String findNoticeDeailById(int msgSendId);

	ArrayList<HashMap<String, Object>> findAllAppAccount(int companyId);

	void updateSendStatus(int noticeId);

	String findNoticeDeailWebById(int noticeId);

	void removeNotice(int noticeId);

	int findSendStatus(int sendId);

	MsgSend findMsgSendById(int sendId);
	
}
